package com.lpwa.system.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.lpwa.common.annotation.Excel;
import com.lpwa.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 设备型号表 sys_device_model
 * 
 * @author tanmu
 * @date 2019-06-04
 */
public class DeviceModel extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 型号ID */
	private Integer modelId;
	/** 型号 */
	@Excel(name = "型号")
	private String modelNumber;
	/** 类型 */
	@Excel(name = "类型")
	private String modelType;
	/** 代号 */
	@Excel(name = "代号")
	private String modelCode;
	/** 设备类型 */
	@Excel(name = "设备类型",readConverterExp = "0=标签,1=基站,2=其他设备",type= Excel.Type.EXPORT)
	private Integer deviceType;
	/** 设备类型 */
	@Excel(name = "设备类型",type= Excel.Type.IMPORT)
	private String deviceTypeName;
	/** 创建时间 */
	@Excel(name = "创建时间", dateFormat="yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;

	/** 备注 */
	@Excel(name = "备注")
	private String remark;

	public String getDeviceTypeName() {
		return deviceTypeName;
	}

	public void setDeviceTypeName(String deviceTypeName) {
		this.deviceTypeName = deviceTypeName;
	}

	@Override
	public Date getCreateTime() {
		return createTime;
	}

	@Override
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public String getRemark() {
		return remark;
	}

	@Override
	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getModelId() {
		return modelId;
	}

	public void setModelId(Integer modelId) {
		this.modelId = modelId;
	}

	public void setModelNumber(String modelNumber)
	{
		this.modelNumber = modelNumber;
	}

	public String getModelNumber() 
	{
		return modelNumber;
	}
	public void setModelType(String modelType) 
	{
		this.modelType = modelType;
	}

	public String getModelType() 
	{
		return modelType;
	}
	public void setModelCode(String modelCode) 
	{
		this.modelCode = modelCode;
	}

	public String getModelCode() 
	{
		return modelCode;
	}
	public void setDeviceType(Integer deviceType) 
	{
		this.deviceType = deviceType;
	}

	public Integer getDeviceType() 
	{
		return deviceType;
	}

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("modelId", getModelId())
            .append("modelNumber", getModelNumber())
            .append("modelType", getModelType())
            .append("modelCode", getModelCode())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("deviceType", getDeviceType())
            .toString();
    }
}
